/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.MRP.MaterialRequirement;

import java.io.Serializable;
import java.util.List;
import javaclass.MaterialReqStt;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;

/**
 *
 * @author Vincent
 */
@Entity
public class MaterialReqAmdt implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @OneToMany
    private List<IndividualMatReq> individualMatReqs;

    //status used for retrieve and display (SCM side)
    private MaterialReqStt status;
    
    @OneToMany
    private List<MRALineItem> mraLineItems;

    private String dateCreated;
    
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }    

    public List<IndividualMatReq> getIndividualMaterialRequirements() {
        return individualMatReqs;
    }

    public void setIndividualMaterialRequirements(List<IndividualMatReq> individualMatReqs) {
        this.individualMatReqs = individualMatReqs;
    }

    public MaterialReqStt getStatus() {
        return status;
    }

    public void setStatus(MaterialReqStt status) {
        this.status = status;
    }

    public String getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(String dateCreated) {
        this.dateCreated = dateCreated;
    }

    public List<MRALineItem> getMraLineItems() {
        return mraLineItems;
    }

    public void setMraLineItems(List<MRALineItem> mraLineItems) {
        this.mraLineItems = mraLineItems;
    }
    
}
